package com.changhai.diabetes.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.changhai.diabetes.model.PhysicalSurvey;
import com.changhai.diabetes.model.PhysicalSurveyResult;
import com.changhai.diabetes.model.QualitySurvey;
import com.changhai.diabetes.model.QualitySurveyResult;
import com.changhai.diabetes.model.SymptomsSurvey;
import com.changhai.diabetes.model.SymptomsSurveyResult;

/**
 * 问卷调查表（生存质量特性、症候、体质分类）
 * 
 * @author Andy
 * 
 */
public interface SurveyService {

	public List<QualitySurvey> searchQualitySurveyQuestions();

	public QualitySurveyResult searchQualityAnswerByPatientId(Long patientId);

	public void saveEditQualityAnswer(QualitySurveyResult qualityResult);

	public Long saveNewQualityAnswer(QualitySurveyResult qualityResult);

	public List<SymptomsSurvey> searchSymptomsSurveyQuestions();

	public SymptomsSurveyResult searchSymptomsAnswerByPatientId(Long patientid);

	public void saveEditSymptomsAnswer(SymptomsSurveyResult symptomsResult);

	public Long saveNewSymptomsAnswer(SymptomsSurveyResult symptomsResult);

	public List<PhysicalSurvey> searchPhysicalSurveyQuestions();

	public PhysicalSurveyResult searchPhysicalAnswerByPatientId(Long patientId);

	public void saveEditPhysicalAnswer(PhysicalSurveyResult physicalResult);

	public Long saveNewPhysicalAnswer(PhysicalSurveyResult physicalResult);

	public Integer getGenderForQuestion(Long patientid);
}
